package com.fawvwebanma.service;

import java.util.List;

import com.fawvwebanma.dto.Result;
import com.fawvwebanma.entity.Person;
import com.fawvwebanma.entity.User;

/**
 * @author jieye.ren
 * @date 2021/3/12
 */
public interface IPersonService {
    Result<List<Person>> getAllPersonsByUserId(User user);

    Result<List<Person>> getPersonByUserIdAndName(String userId, List<String> names);

    Result<Person> insertPerson(Person person);

    Result<Person> deletePerson(Person person);

    Result<Person> updatePerson(Person person);
}
